import { NestFactory } from '@nestjs/core'
import { ApplicationModule } from './modules/app.module'
import * as express from 'express'
import * as path from 'path'

async function bootstrap () {
  const instance = express()

  const app = await NestFactory.create(ApplicationModule, instance)

  console.log(path.join(__dirname, 'public'))
  // app.use('/static', express.static(path.join(__dirname, 'public')));
  app.listen(3005)
}

bootstrap()
